<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<include file="Public/header"/>

</head>

<body>

<div id="wrapper">

	<include file="Public/left" />
	<div id="page-wrapper">
		<div class="row">
			<div class="col-lg-12">
				<h1 class="page-header"> 通讯录</h1>
			</div>
			<!-- /.col-lg-12 -->
		</div>
		<!-- /.row -->
		<div class="row">
			<div class="col-lg-12">
				<div class="panel-body">
					<div class="table-responsive">
						<table class="table table-striped table-bordered table-hover">
							<thead>
								<tr>
									<th colspan="9">
										<form action="" method="get" class="form-inline" role="form">
											<div class="form-group">
												<label class="sr-only" for="nickname">姓名</label>
												<input type="text" class="form-control" id="nickname" placeholder="请输入姓名" name="nickname" value="{$_GET['nickname']}">
											</div>
											<div class="checkbox">
												<label>
													<input type="checkbox" value="1" name="pay" <if condition="$_GET['pay'] eq 1">checked="checked"</if>>已交年费
												</label>
											</div>
											<button type="submit" class="btn btn-default">提交</button>
										</form>
									</th>
								</tr>
							</thead>
							<thead>
								<tr>
									<th>#</th>
									<th>姓名</th>
									<th>单位</th>
									<th>电话</th>
									<th>QQ</th>
									<th>地址</th>
									<th>邀请码</th>
									<th>是否交年费</th>
									<th>到期时间</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<volist name="list" id="list">
									<tr>
										<td>{$list['id']}</td>
										<td>{$list['nickname']}</td>
										<td>{$list['company']}</td>
										<td>{$list['mobile']|echotel}</td>
										<td>{$list['qq']}</td>
										<td>{$list['address']}</td>
										<td>{$list['code']}</td>
										<td>
											<if condition="$list['paytime'] gt $pretime">
											<span style="color:green;">是</span>
											<else/>
											<span style="color:red;">否</span>
											</if>
										</td>
										<td>
											<a href="{:U('Address/edit',array('id'=>$list['id']))}">查看</a>
											<a href="{:U('Address/del',array('id'=>$list['id']))}" onclick="if(!confirm('确定删除？')) return false;">删除</a>
										</td>
									</tr>
								</volist>
								<tr>
									<td></td>
									<td colspan="8" align="right">{$page}</td>
								</tr>
							</tbody>
						</table>
					</div>
					<!-- /.table-responsive -->
				</div>
			</div>
		</div>
	</div>
	<!-- /.row -->
</div>
<!-- /#page-wrapper -->

	</div>
	<!-- /#wrapper -->

	<include file="Public/footer" />

	<!-- Morris Charts JavaScript -->
	<script src="__PUBLIC__/Admin/bower_components/raphael/raphael-min.js"></script>
	<script src="__PUBLIC__/Admin/bower_components/morrisjs/morris.min.js"></script>
	<script src="__PUBLIC__/Admin/js/morris-data.js"></script>

</body>

</html>
